import { EnumEducation, EnumGender, EnumWorkMode, EnumResumeStage } from "@/api/siderBar/model";
import { mapToOptions } from "@/utils/helper";

/** 学历 */
export const mapEducation = new Map<EnumEducation, string>([
  [EnumEducation.小学, '小学'],
  [EnumEducation.初中, '初中'],
  [EnumEducation.中专, '中专/中技'],
  [EnumEducation.高中, '高中'],
  [EnumEducation.专科, '专科'],
  [EnumEducation.本科, '本科'],
  [EnumEducation.博士, '博士'],
  [EnumEducation.硕士, '硕士'],
])
/** 学历选项 */
export const educationOptions = mapToOptions(mapEducation)
/** 性别 */
export const mapGender = new Map<EnumGender, string>([
  [EnumGender.保密, '保密'],
  [EnumGender.男, '男'],
  [EnumGender.女, '女'],
])
/** 性别选项 */
export const genderOptions = mapToOptions(mapGender)
/** 职业类型 */
export const mapJobType = new Map<EnumWorkMode, string>([
  [EnumWorkMode.全职, '全职'],
  [EnumWorkMode.兼职, '兼职'],
  [EnumWorkMode.实习, '实习'],
])
/** 职业类型选项 */
export const jobTypeOptions = mapToOptions(mapJobType)
/** 阶段 */
export const mapResumeStage = new Map<EnumResumeStage, string>([
  [EnumResumeStage.初筛阶段, '初筛阶段'],
  [EnumResumeStage.面试阶段, '面试阶段'],
  [EnumResumeStage.Offer阶段, 'Offer阶段'],
  [EnumResumeStage.入职阶段, '入职阶段'],
  [EnumResumeStage.关闭阶段, '关闭阶段'],
])
/** 阶段选项 */
export const resumeStageOptions = mapToOptions(mapResumeStage)
export const AllValue = -1;
